<?php
	$tool_buttons = array
	(
		'view_user' => array
		(
			'image'=>'btnViewLarge.gif', 
			'text'=>LANG_USER, 
			'url'=>'/users/view/' . $this->data[user_id]
		),
		
		'view_contact' => array
		(
			'image'=>'btnViewLarge.gif', 
			'text'=>LANG_CONTACT, 
			'url'=>'/contacts/view/' . $this->data[user_id]
		)
	);

	$this->helpers->htmlx->MenuText1(LANG_ROLES.': '.LANG_VIEW.' '.LANG_FOR.' '.$this->data[user][login], "view.gif");
	$this->helpers->toolbars->Toolbar($tool_buttons);
	echo "<table class='grid' cellspacing = 1>";
	   echo"<tr>";
	   $this->helpers->htmlx->td(ucfirst(LANG_ROLE), ' class="gridHeader" width=""');
	   $this->helpers->htmlx->td('', ' class="gridHeader" width=""');
	    echo"</tr>";
	    	$i=1;
	    	foreach ($this->data[roles] as $role)
	    	{
	    		if ($i%2==1) $cellStyle = 'gridCell1';
	    		else $cellStyle = 'gridCell2';
	    		echo "<tr>";
		    		echo "<td class='$cellStyle' align='left'>";
		    		 	echo $role[name];
		    		echo "</td>";  
	    			echo "<td class='$cellStyle' align='center'>";
		    			$this->helpers->htmlx->checkBox('userRole['.$role[role_id].']', 1, $role[in_role], 'disabled = disabled');   		
		    		echo "</td>";     		
		    		$this->helpers->htmlx->hidden('user_id', $this->data[user_id]);  
	    		echo "</tr>";
	    		$i++;
	    	}
	echo "</table>";
?>